package com.System.pojo;

import java.sql.Timestamp;

public class Post {
    private int id;
    private String name;
    private String context;
    private int likeNumber;
    private Timestamp created_at;
    public String barName;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public int getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(int likeNumber) {
        this.likeNumber = likeNumber;
    }

    public Timestamp getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Timestamp created_at) {
        this.created_at = created_at;
    }

    public Post(int id, String name, String context, int likeNumber, Timestamp created_at) {
        this.id = id;
        this.name = name;
        this.context = context;
        this.likeNumber = likeNumber;
        this.created_at = created_at;
    }

    public Post(String name, String barName) {
        this.name = name;
        this.barName = barName;
    }

    public Post(int id, String name, String barName) {
        this.id = id;
        this.name = name;
        this.barName = barName;
    }

    public String getBarName() {
        return barName;
    }

    public void setBarName(String barName) {
        this.barName = barName;
    }


    public Post() {
    }

    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", context='" + context + '\'' +
                ", likeNumber=" + likeNumber +
                ", created_at=" + created_at +
                '}';
    }

    public Post(int id) {
        this.id = id;
    }
}
